using UnityEngine;
using UnityEngine.Events;

public class BaseEventSO<T> : ScriptableObject
{
   [TextArea]
   public string description;
   [Header("上一个发送者")]
   public string lastSender;
   
   public UnityAction<T> OnEventRaised;
   

   public void RaisEvent(T value,object sender)
   {
       OnEventRaised?.Invoke(value);
       lastSender = sender.ToString();
   }
}
